.container {
    width: 1000px;
    margin: 0 auto;
    background-color: rgb(230, 248, 207);
}

h1 {
    margin: 0 0 10px 0;
    padding: 0;
}

ul,
li {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}


/* 垂直菜单 */

.menu1 {
    width: 200px;
    height: 160px;
    background-color: rgb(196, 224, 255);
}

.menu1 li {
    width: 200px;
    height: 39px;
    background-color: rgb(250, 122, 122);
    border-bottom: 1px solid brown;
    line-height: 39px;
}

.menu1 a {
    display: block;
    width: 170px;
    height: 39px;
    padding-left: 20px;
    color: white;
    border-left: 10px solid rgb(158, 12, 12);
}

.menu1 :hover {
    background-color: rgb(185, 98, 98);
    border-left: 10px solid rgb(245, 11, 11);
}

.sep {
    height: 60px;
}


/* 水平菜单 */

.menu2 {
    width: 1000px;
    height: 40px;
    background: transparent url(bg.jpg) repeat-x left top;
}

.menu2 li {
    float: left;
    width: 120px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.menu2 a {
    display: block;
    color: #ffffff;
}

.menu2 a:hover {
    color: #ff3d3d;
    background-color: rgb(34, 191, 219);
}


/* 水平菜单带垂直子菜单 */

.menu3 {
    width: 1000px;
    height: 40px;
    background-color: rgb(177, 177, 177);
}

.menu3 li {
    float: left;
    width: 120px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.menu3 a {
    display: block;
    color: #ac146f;
    height: 39px;
    width: 120px;
    /* border-right: 1px solid #ccc; */
    border-bottom: 1px solid #b3b3b3;
}

.menu3 .submenu {
    visibility: hidden;
    width: 120px;
}

.menu3 a:hover {
    background-color: #666;
    border-bottom: 1px solid #ff0000;
}

.menu3 li:hover .submenu {
    visibility: visible;
    position: relative;
    z-index: 100;
}

.menu3 .submenu li {
    height: 35px;
    line-height: 35px;
}

.menu3 .submenu a {
    background-color: #666;
    color: greenyellow;
    border: 0;
}

.menu3 .submenu a:hover {
    background-color: #333;
}


/* 水平带水平子菜单演示 */

.menu4 {
    width: 1000px;
    height: 40px;
    background-color: rgb(22, 22, 201);
    position: relative;
}

.menu4 li {
    float: left;
    width: 120px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.menu4 a {
    display: block;
    color: #f19d9d;
    height: 39px;
    width: 120px;
    /* border-right: 1px solid #ccc; */
    border-bottom: 1px solid #c93131;
}

.menu4 a:hover {
    background-color: rgb(65, 65, 235);
    border-bottom: 1px solid #ff0000;
    color: #80295d;
}

.menu4 .submenu {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 100;
    height: 100px;
    width: 900px;
    border: 1px solid rebeccapurple;
}

.menu4 .submenu li {
    float: left;
    background-color: rgb(104, 104, 228);
}

.menu4 li:hover .submenu {
    display: block;
}

.menu4 .submenu a {
    color: #000;
    border: none;
}

.menu4 .submenu a:hover {
    color: red;
    background-color: #ffffff;
}